<?php
namespace app\index\model;
use think\Model;
use app\index\model\Banner as Ba;
class Banner extends Model
{
	public function list()
	{
		/*$list = self::where('id','>',0)->select();
		return $list;*/
		$list=new banner();
		if(!empty(input('param.name'))){
			$list=$list->where("name","like","%".input("param.name/s")."%");	
		}
		$list=$list->paginate(5,false,['query'=>input('param.')]);
		return $list;

	}
}
?>